<?php

    require 'core.php';


    $member_name = "test" . rand(10000,999999);

    $user_info = [
        'nickname' => "test",

    ];

    $insert_array = array();
    $insert_array['member_name'] = trim($member_name);
    $insert_array['member_passwd'] = trim(1234567);
    $insert_array['member_email'] = trim('');
    $insert_array['member_truename'] = trim($user_info['nickname']);
    $insert_array['member_sex'] = trim('');
    $insert_array['member_qq'] = trim('');
    $insert_array['member_ww'] = trim('');
    $insert_array['nickname'] = trim($user_info['nickname']);

    $result = Model('member')->insert($insert_array);

    $info = Model('member')->where(array('member_name' => $member_name))->find();
    print_r($info);

    echo $result;
    exit;
